Impact of Inheritance on Metrics for Size, Coupling, and Cohesion in Object-Oriented Systems
نویسندگان
چکیده
In today’s engineering of object oriented systems many different metrics are used to get feedback about design quality and to automatically identify design weaknesses. While the concept of inheritance is covered by special inheritance metrics its impact on other classical metrics (like size, coupling or cohesion metrics) is not considered; this can yield misleading measurement values and false interpretations. In this paper we present an approach to work the concept of inheritance into classical metrics (and with it the related concepts of overriding, overloading and polymorphism). This is done by some language dependent flattening functions that modify the data on which the measurement will be done. These functions are implemented within our metrics tool Crocodile and are applied for a case study: the comparison of the measurement values of the original data with the measurement values of the flattened data yields interesting results and improves the power of classical measurements for interpretation.
منابع مشابه
Predicting Maintainability with Object-Oriented Metrics - An Empirical Comparison
A large number of metrics have been proposed for measuring properties of object-oriented software such as size, inheritance, cohesion and coupling. We have been investigating which of these object-oriented metrics can be used as significant predictors for the maintainability of software. For this purpose, we have designed and conducted an empirical study based on historical data collected from ...
متن کاملDegree of Coupling and Cohesion in Object Oriented Programming
Many coupling and cohesion measures have been introduced in various surveys to identify and measure the design complexity of object oriented systems. A large numbers of metrics have been built and proposed for measuring properties of object-oriented software such as size, inheritance, cohesion and coupling. The coupling is an important aspect in the evaluation of reusability and maintainability...
متن کاملCoupling and Cohesion Measures in Object Oriented Programming
Many coupling and cohesion measures have been introduced in various surveys to identify and measure the design complexity of object oriented systems.A large numbers of metrics have been built and proposed for measuring properties of object-oriented software such as size, inheritance, cohesion and coupling.The coupling is an important aspect in the evaluation of reusability and maintainability o...
متن کاملImportance of Inheritance and Interface in OOP Paradigm Measure through Coupling Metrics
A large numbers of metrics have been proposed for measuring properties of object-oriented software such as size, inheritance, cohesion and coupling. The coupling metrics presented in this paper exploring the difference between inheritance and interface programming. This paper presents a measurement to measure coupling between object (CBO), number of associations between classes (NASSocC), numbe...
متن کاملMeasuring Cohesion and Coupling of Object-Oriented Systems - Derivation and Mutual Study of Cohesion and Coupling
Cohesion and coupling are considered amongst the most important properties to evaluate the quality of a design. In the context of OO software development, cohesion means relatedness of the public functionality of a class whereas coupling stands for the degree of dependence of a class on other classes in OO system. In this thesis, a new metric has been proposed that measures the class cohesion o...
متن کامل